<?php require_once "inc.php" ?>
<!DOCTYPE HTML PUBLIC  "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<!-- page title -->
<title>Saviance</title>


<link rel="stylesheet" href="images/jquery.tabs.css" type="text/css">
<style type="text/css">
<!--
.style3 {color: #FFFFFF; font-weight: bold; }
-->
</style>
</head>
<body id="faculty_attendace">
<div id="wrapper">
  <?php require_once "header.inc.php"?>
  <!-- header end -->
  <!-- content start -->
  
  <div id="body-wrapper">
    <!-- BREADCRUMB NAVIGATION -->
    <div id="body" class="clear">
      <div class="clear">
        <div id="content2">
          <!--Dont Remove this commented code-->
          <!--<div class="left_menu">
        <div id="primary" class="clear-block">  </div>
              </div>-->
          <!--END DONT REMOVE COMMENT-->
          <div style="" id="main">
            <!--<div id="sidebar-wrapper">-->
            <div class="top-corners">
              <div class="bottom-corners">
               <?php require_once "left_admin.inc.php"; ?>
                <!-- /sidebar-left -->
                <div id="main_content">
                  <div id="squeeze">
					<h3>Attendance</h3>
                    <table border="0" cellspacing="0" cellpadding="0" width="100%" class="list_table_2" style="border-top:3px solid #00254A;">
<tr>
  <td height="30" colspan="2" bgcolor="#E6E6E6" style="color:#555; font-weight:bold;"> Attendance Record </td>
  </tr>
<tr>
  <td>Subject</td>
  <td><?php echo $_GET['sub']; ?></td></tr>
    <tr>
    	<td width="26%">Total</td>
    	<td width="74%"><?php echo $_GET['total']; ?></td>
	</tr>
	<tr>
    	<td>Date From</td>
		<td><input name="textfield" type="text" id="textfield" value="11-10-2011" size="15" />
        <a href="#"><img src="images/date_picker1.gif" alt="" width="17" height="17" border="0" /></a></td>
    </tr>
	<tr>
    	<td>Date To</td>
		<td><input name="textfield" type="text" id="textfield" value="<?php echo $_GET['total']+10;?>-10-2011" size="15" />
        <a href="#"><img src="images/date_picker1.gif" alt="" width="17" height="17" border="0" /></a></td>
    </tr>
    <tr>
    <td colspan="2">
	<table border="0" cellspacing="0" cellpadding="0" width="100%" class="list_table_2" style="border-top:3px solid #00254A;">
          <tr bgcolor="#E6E6E6" style="color:#555; font-weight:bold;">
            <td width="23%" height="30" bgcolor="#E6E6E6">Date</td>
            <td width="27%" height="30" >Status</td>
			<td width="50%">Comment</td>
          </tr>
		  <?php 
		   $j=10;
		   $k=$_GET['total'];
		   for($i=$k;$i>0;$i=$i-1)
		   { ?>
          <tr>
            <td><label><?php if($i!=16 || $i!=23) { echo $j=$j+1; } ?>/10/2011</label></td>
            <?php if($i==13 || $i==2 || $i==4) {?>
			<td>Absent</td>
			<td>Fever &amp; Cold</td>	
			
			<?php } else if($i==17 || $i==7 || $i==10) {?>
			<td>Absent</td>
			<td>Function at home</td>	
				<?php } else if($i!=16 || $i!=23 || $i!= 9) { ?>	
			<td> Present</td>
			<td>&nbsp;</td>
				<?php } ?>
			
          </tr>
		  <?php } ?>
                        </table></td>
    </tr>
</table>


			
                  </div>
                </div>
                <!-- /content -->
                <span class="clear"></span> </div>
            </div>
            <!--</div>-->
            <!-- /sidebar_wrapper -->
          </div>
        </div>
      </div>
      <!-- end three column -->
    </div>
  </div>
  
  <!-- content end -->
  <!-- footer start -->
 <?php require_once "footer.inc.php"; ?>
  <!-- footer end -->
</div>
</body>

</html>